clear 
clear matrix
clear mata
set more off
set varabbrev off
set mem 100000000

* path to main folder for Data
global mystart  "Replication JPE\Data"

global out_figures "${mystart}\Tables and Figures\"
global out_tables "${mystart}\Tables and Figures\"
* Folder where we store parameters for model
global data_model "${mystart}\Parameters for Model\"

* raw data files location - these are downloaded from the MEPS website
global data_raw "${mystart}\MEPS\MEPS Data Files\Raw MEPS Data files\Consolidated STATA Files\"

* Folder where we store intermediate raw files that have been transformed as to be ready to combine into one file with all years. 
global data_raw_merge "${mystart}\MEPS\MEPS Data Files\Intermediate Data Files\Consolidated files for merging\"

* Folder where we store other intermediate data files for analysis
global data "${mystart}\MEPS\MEPS Data Files\Intermediate Data Files\"


cd "${mystart}\MEPS\Do Files\"

do "0.1 Combine Consolidated Data Files for all years.do"	
do "0.2 Clean MEPS Consolidated Data Files.do"
do "1.1 MEPS Merge with data on H - All Races.do"  
do "1.2 MEPS Merge with data on H.do"  

do "2. Marital Status and Spouse Stats.do"  
do "3. Medical expenditures.do" 
do "4. Medical Charges and Treatment.do" 
do "5. H and R.do" 
do "6. Health Shocks.do" 
do "7. Labor statistics.do"
do "8. Sick Days.do" 
do "9. Health Stats Minorities.do" 
do "10. Marital Status and Spouse Stats Minorities.do" 		

